<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ["张三",28.7,5,"Join",0.54,"Lily","李四",993];
        var arr1 = [];
        var arr2 = [];
        arr.forEach(function(item,i){
            if(isNaN(item) == true){
                arr2.push(item);
            }else{
                arr1.push(item);
            }
        })
        console.log(arr1);
        console.log(arr2);
    </script>
</body>
</html>